<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
<head>
    <head th:include="common/global :: global('确认订单','weChat/pay','pay/pay')">

</head>
<body>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<div th:replace="common/head :: head('确认订单')">

</div>

<input type="hidden" th:value="${order.orderId}" id="orderId">
<input type="hidden" th:value="${order.orderPrice}" id="orderPrice">


<div class="order-box">

    <div class="information-box">
        <div class="information">
            <div class="information-input">
                <input name="tid" th:value="${order.consigneeInfo.tid}" type="hidden">
                <span>收货人</span>：<input type="text" id="consigneeName" th:value="${order.consigneeInfo.consigneeName}"  class="input-one" onfocus="if(value=='姓名') {value=''}" onblur="if (value=='') {value='姓名'}"/>
                <span>电话</span>：<input type="text"id="consigneePhone" th:value="${order.consigneeInfo.consigneePhone}" class="input-two" onfocus="if(value=='电话') {value=''}" onblur="if (value=='') {value='电话'}"/>
            </div>


            <textarea class="address" id="consigneeAddress" onfocus="if(value=='详细地址') {value=''}" onblur="if (value=='') {value='详细地址'}" th:text="${order.consigneeInfo.consigneeAddress}"></textarea>
        </div>
    </div>


    <div class="product-box" th:each="item:${order.orderItemList}">
            <div class="product">
                <div class="photo">
                    <img  alt="" th:src="${item?.productEntity?.productEntityPic}" />
                </div>

                <div class="details">
                    <div class="name">
                        <b class="bone">产品名字</b>
                        <!-- <b class="btwo"><span>x</span><span>1</span></b> -->
                    </div>



                    <div class="money">
                        <p th:text="${'￥'+#numbers.formatDecimal(item?.price/100.00,1,2)}"><!-- <fmt:formatNumber value="${item.price/100}" pattern="￥#,#0.00#"/> -->￥12233.00</p>
                    </div>
                </div>
            </div>

    </div>

</div>

<div class="null"></div>

<div class="pay_way">
    <div class="hover1" payMode="9">换购</div>
    <div payMode="6">微信支付</div>
</div>

<div class="order-foot">
    <div class="total-amount">
        <span>总金额:</span>
        <span style="font-size: .26rem"><b th:text="${'￥'+#numbers.formatDecimal(order?.orderPrice/100.00,1,2)}">￥12233.00</b></span>
    </div>

    <div class="btn-box">
        <a href="javascript:void(0)" class="btn">提交订单</a>
    </div>
</div>



</body>
</html>